from machine import I2C,Pin
from ssd1306 import SSD1306_I2C
import utime

i2c=I2C(0,sda=Pin(0), scl=Pin(1), freq=400000) 
print("I2C device: " + str(i2c.scan()[0]))
oled = SSD1306_I2C(128, 64, i2c) 

while True:
    # Clear the display
    oled.fill(0)
    # Display "Hello, World!" at (0, 0)
    oled.text("Hello, BearPi!", 0, 0, 1)
    # Refresh the display
    oled.show()
    utime.sleep(2)
